<?php


namespace app\common\enum;


class GoodsCommentEnum
{
    //回复状态
    const WAIT = 0;//待回复
    const FINISH = 1;//已回复


    /**
     * @notes 状态
     * @param bool $value
     * @return string|string[]
     * @author ljj
     * @date 2022/2/9 11:21 上午
     */
    public static function getStatusDesc($value = true)
    {
        $data = [
            self::WAIT => '待回复',
            self::FINISH => '已回复'
        ];
        if ($value === true) {
            return $data;
        }
        return $data[$value];
    }
}